package com.leantech.android.browser.ad


import android.content.Context

import com.leantech.android.browser.R
import com.lean.android.ad.core.config.AppInfoProvider
import com.leantech.android.browser.BuildConfig
import org.koin.core.component.KoinComponent
import splitties.resources.str

class AppInfoProviderImpl(private val context: Context) : AppInfoProvider, KoinComponent {

    private val appClient = getKoin().getProperty("appClient", "")
    private val projectId = getKoin().getProperty("projectId", "")

    override fun getAppName(): String {
        return context.str(R.string.app_name)
    }

    override fun getVersion(): String {
        return BuildConfig.VERSION_NAME
    }

    override fun getAppClient(): String {
        return appClient
    }

    override fun getProjectId(): String {
        return projectId
    }
}